package com.example.demo.sharejdbc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author root
 * @date 2021-01-14 13:32
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "t_order")
@Table
public class UserOrder {

    @Id
    private Long orderId;

    private Integer userId;
}
